package bishi.day10_4_28;

import java.util.Scanner;

/**
 * @author huweilong
 * @date 2022/04/28 17:00
 **/
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String s = sc.nextLine();
            int sum, letter = 0, Letter = 0, number = 0, other = 0, total;
            int length = s.length();
            if (length <= 4) {
                sum = 5;
            } else if (7 >= length) {
                sum = 10;
            } else {
                sum = 25;
            }
            for (int i = 0; i < length; i++) {
                char ch = s.charAt(i);
                if (ch >= '0' && ch <= '9') {
                    number++;
                }
                if (ch >= 'a' && ch <= 'z') {
                    letter++;
                }
                if (ch >= 'A' && ch <= 'Z') {
                    Letter++;
                }
            }
            other = length - number - letter - Letter;
            if (number > 1) {
                sum += 20;
            } else if (number == 1) {
                sum += 10;
            }
            if (Letter > 0 && letter > 0) {
                sum += 20;
            } else if (letter > 0 || Letter > 0) {
                sum += 10;
            }
            if (other == 1) {
                sum += 10;
            } else if (other > 1) {
                sum += 25;
            }
            if (Letter > 0 && letter > 0 && number > 0 && other > 0) {
                sum += 5;
            } else if ((Letter > 0 || letter > 0) && number > 0 && other > 0) {
                sum += 3;
            } else if ((Letter > 0 || letter > 0) && number > 0 && other == 0) {
                sum += 2;
            }
            if (sum >= 90) {
                System.out.println("VERY_SECURE");
            } else if (sum >= 80) {
                System.out.println("SECURE");
            } else if (sum >= 70) {
                System.out.println("VERY_STRONG");
            } else if (sum >= 60) {
                System.out.println("STRONG");
            } else if (sum >= 50) {
                System.out.println("AVERAGE");
            } else if (sum >= 25) {
                System.out.println("WEAK");
            } else {
                System.out.println("VERY_WEAK");
            }
        }
    }
}